﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model sipfe.model.dataAccess.SIPMaePersona
<script type="text/javascript">
    $(function () {
       // calendarFechaFuturo('fechaNac', '1');
    });
</script>
@{   
    int i = 0;
}
@using Resources;
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.mantePersonaJS)"></script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.autocompleteJS)" ></script>

<div class="divOver">
<table style="width: 100%;" border="1" cellpadding="0" cellspacing="0"  class="tablaDetalle">
    <tr class="titulo1">
        <td>#</td>                                    
        <td>ssNombre de la Persona</td>
        <td>Documento de Idntidad</td>
        <td>Fecha Nacimiento</td>
        <td>Género</td>
        <td>Lugar de Nacimiento</td>
        <td>Inicio Vigencia</td>
        <td>Usuario Registro</td>
        <td>Fecha Registro</td>                           
    </tr>
    @{
        i++;        
        <tr class="@(i % 2 != 0 ? "odd" : "even")" id="trDet2@(i)">
            <td>@i</td>
            <td>@Model.vPriNombre @Model.vSegNombre @Model.vPriApellido @Model.vSegApellido</td>
            <td>@Model.SIPDetCompendio1.vNomCorto @Model.SIPDetCompendio2.vNomCorto : @Model.vNumDocum</td>
            <td>@String.Format("{0:dd/MM/yyyy}", Model.dtFecNacim)</td>
            <td>@Model.SIPDetCompendio.vNomCorto</td>
            <td>Tumbes</td>            
            <td>@String.Format("{0:dd/MM/yyyy}", Model.dFecIniVig)</td>
            <td>@Model.SIPMaeUsuario.vCodUsuario</td>
            <td>@String.Format("{0:dd/MM/yyyy HH:mm}", Model.dtFecReg)</td>
        </tr>
    }
</table>    
</div>
<br />
<input  type="hidden" id="nIdePersonaMante"  value="@ViewBag.n_idePersonaMante"  />
<fieldset style="width: 98%;" class="fieldsetStyle1">
    <legend class="tituloBlue9">Actualizar Datos de la Persona</legend>
    <table border="0" style="width: 100%;" cellpadding="0" cellspacing="0" >
        <tbody>
            <tr>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" style="width:250px;" class="tablaDetalle2">
                        <tbody class="tituloCelesteN8">
                            <tr>
                                <td style="width:120px;"><strong><em class="textNormal8"><b>NUEVO ESTADO CIVIL</b></em></strong></td>
                                <td style="width:10px;"><strong><em class="textNormal8"><b>:</b></em></strong></td>
                                <td>@Html.DropDownList("nIdeEstado", (IEnumerable<SelectListItem>)ViewBag.EstadoCivil,"--Seleccione--", new { @class = "select8", onchange="javascript:onChengeEstadoCivilMante(this);" })</td>
                                <td><img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  onclick="javascript:registrarEstadoCivilMante('#divDatosEstadoCivil');"/></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr><td><div id="divDatosEstadoCivil" class="divOver2">@RenderPage("~/Areas/Persona/Views/Shared/RODatosEstadoCivil.cshtml")</div></td></tr>
            <tr>
                <td>
                    <table border="1" cellpadding="0" cellspacing="0" style="width:400px;" class="tablaDetalle2">
                        <tbody class="tituloCelesteN8">
                            <tr>                                       
                                <td style="width:110px;" rowspan="2"><strong><em class="textNormal8"><b>NUEVO TELÉFONO:</b></em></strong></td>                                
                                <td>Prefijo<span class="asterisco">(*)</span></td> 
                                <td>&nbsp;</td>                                       
                                <td>Número Teléfono</td>
                                <td rowspan="2"><img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  onclick="javascript:registrarTelefonoMante('#divDatosTelefono','1');"/></td>                                       
                            </tr>
                            <tr>
                                <td>@Html.TextBox("vPrefijo", null,new {@style="width:40px;", maxlength=6 })</td> 
                                <td>-</td>                                      
                                <td>@Html.TextBox("vNumTelefono", null,new {@style="width:150px;", maxlength=20 })</td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr><td><div id="divDatosTelefono" class="divOver2">@RenderPage("~/Areas/Persona/Views/Shared/RODatosTelefono.cshtml")</div></td></tr>
            <tr>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" style="width:550px;" class="tablaDetalle2">
                        <tbody class="tituloCelesteN8">
                            <tr>
                                <td style="width:170px;"><strong><em class="textNormal8"><b>NUEVO CORREO ELECTRÓNICO</b></em></strong></td>
                                <td style="width:10px;"><strong><em class="textNormal8"><b>:</b></em></strong></td>
                                <td>@Html.TextBox("vCorreo", null,new {@style="width:350px;text-transform:none;", maxlength=150, onblur="javascript:isValidEmail(this);" })</td>
                                <td><img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  onclick="javascript:registrarCorreoMante('#divDatosEmail','1');"/></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr><td><div id="divDatosEmail" class="divOver2">@RenderPage("~/Areas/Persona/Views/Shared/RODatosCorreo.cshtml")</div></td></tr>            
            
        </tbody>
    </table>
</fieldset>